package binary;
/**  16进制演示 */
public class HexDemo {
    public static void main(String[] args) {
        int a=0x1c7460f;
        int b=0b01_1100_0111_0100_0110_0000_1111;
        System.out.println(Integer.toBinaryString(a));
        System.out.println(Integer.toHexString(b));

        System.out.println(a);
        System.out.println(b);

        System.out.println(Integer.toBinaryString(b));
        System.out.println(Integer.toHexString(a));
    }
}
